package com.echo.model.exception;

import com.echo.model.resq.response.base.ResultCode;

/**
 * @version: V1.0
 * @author: chentailai
 * @description: 自定义异常类型
 * @className: CustomException
 * @packageName: com.echo.model.exception
 * @data: 2020/3/26 17:14
 **/
public class CustomException extends RuntimeException {

    //错误代码
    ResultCode resultCode;

    public CustomException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }


}
